<?php
/**
 * The header for our theme.
 *
 * This is the template that displays all of the <head> section and everything up until <div id="content">
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package zsuper_mayi
 */
if(wp_is_mobile()){
	$url = "http://m.yuerenjf.com";
	header("HTTP/1.1 303 SEE OTHER");
	header("Location:$url");
	exit;
}
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="profile" href="http://gmpg.org/xfn/11">
	<?php wp_head(); ?>
</head>
<body>
<!-- header开始  -->
<div class="header">
<!-- 顶部开始 -->
  <div class="top">
    <div class="w clear">
      <ul class="fl clear">
        <li>客服电话：400-006-2190</li>
        <li><a id="follow" class="wx" href="javascript:void(0);" title="">关注微信：</a></li>
        <li><a id="download" href="javascript:void(0);" title="">下载APP</a></li>
      </ul>
      <ul class="fr clear">
      	<img class="fr_code" src="<?php bloginfo('template_directory' ); ?>/image/code_3.png" alt="">
        <li>您好，欢迎来到赚个车！</li>
        <li><a class="login" href="javascript:void(0);" title="">已有账号？</a></li>
        <li><a class="register" href="javascript:void(0);" title="">注册</a></li>
        <li><a href="../about/#1465709986827-be10d93a-8470" title="">帮助中心</a></li>
      </ul>
    </div>
  </div>
<!-- 顶部结束 -->
<!-- 顶部结束 -->
	<div class="nav">
		<div class="w clear">
			<a class="nav_logo" href="<?php bloginfo('url') ?>"><img src="<?php bloginfo('template_directory' ); ?>/image/yr-logo.png?20170122" alt=""></a>
			<span class="nav_txt">专注于车贷服务于全国</span>
			<?php    /**
			* Displays a navigation menu
			* @param array $args Arguments
			*/
			$args = array(
				'theme_location' => '',
				'menu' => '',
				'container' => 'div',
				'container_class' => 'menu-top',
				'container_id' => 'index_nav',
				'menu_class' => 'clear cur',
				'menu_id' => '',
				'echo' => true,
				'fallback_cb' => 'wp_page_menu',
				'before' => '',
				'after' => '',
				'link_before' => '',
				'link_after' => '',
				'items_wrap' => '<ul id = "%1$s" class = "%2$s">%3$s</ul>',
				'depth' => 0,
				'walker' => ''
			);
			wp_nav_menu( $args ); ?>
		</div>
	</div>
<!-- 导航结束 -->
</div>
<!-- header结束 -->
